var t = require;
var e = module;
var o = exports;
var i, n = this && this.__extends || (i = function(t, e) {
    return (i = Object.setPrototypeOf || {
        __proto__: []
    }
    instanceof Array &&
    function(t, e) {
        t.__proto__ = e
    } ||
    function(t, e) {
        for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o])
    })(t, e)
},
function(t, e) {
    function o() {
        this.constructor = t
    }
    i(t, e),
    t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o)
}),
a = this && this.__decorate ||
function(t, e, o, i) {
    var n, a = arguments.length,
    r = a < 3 ? e: null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
    if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, o, i);
    else for (var s = t.length - 1; s >= 0; s--)(n = t[s]) && (r = (a < 3 ? n(r) : a > 3 ? n(e, o, r) : n(e, o)) || r);
    return a > 3 && r && Object.defineProperty(e, o, r),
    r
};
Object.defineProperty(o, "__esModule", {
    value: !0
});
var r = t("GlobalUserData"),
s = t("Util"),
l = t("Global"),
c = t("GameResPkg"),
d = t("ResManager"),
h = cc._decorator,
p = h.ccclass,
u = (h.property,
function(t) {
    function e() {
        return null !== t && t.apply(this, arguments) || this
    }
    return n(e, t),
    e.prototype.onLoad = function() {
        if (!r.default.initAds) {
            r.default.pbf_partsArr = [],
            r.default.pbf_propsArr = [],
            r.default.initAds = !0;
            for (var t = 0; t < 5; t++) {
                var e = d.default.getInstance().getAsset("AB", c.default.AB.urls[t]);
                r.default.pbf_partsArr.push(e)
            }
            r.default.pbf_propsArr.push(d.default.getInstance().getAsset("AB", l.AssetsPath.speed)),
            r.default.pbf_propsArr.push(d.default.getInstance().getAsset("AB", l.AssetsPath.bubble)),
            r.default.pbf_propsArr.push(d.default.getInstance().getAsset("AB", l.AssetsPath.shield)),
            r.default.pfb_starParticle = d.default.getInstance().getAsset("AB", l.AssetsPath.star),
            this.scheduleOnce(function() {
                s.Util.initCommonAds(),
                s.Util.initNativeAds()
            },
            0)
        }
    },
    a([p], e)
} (cc.Component));
o.default = u